home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / PInterfaces / ConnectionTools.p < prev    next >
Text File  |  1996-05-01  |  3KB  |  139 lines

  1. {
  2.      File:        ConnectionTools.p
  3.  
  4.      Contains:    Communications Toolbox Connection Tools Interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    Universal Interfaces 3.0d3 on Copland DR1
  8.  
  9.      Copyright:    © 1984-1996 by Apple Computer, Inc.  All rights reserved.
  10.  
  11.      Bugs?:        If you find a problem with this file, send the file and version
  12.                  information (from above) and the problem description to:
  13.  
  14.                      Internet:    apple.bugs@applelink.apple.com
  15.                      AppleLink:    APPLE.BUGS
  16.  
  17. }
  18. {$IFC UNDEFINED UsingIncludes}
  19. {$SETC UsingIncludes := 0}
  20. {$ENDC}
  21.  
  22. {$IFC NOT UsingIncludes}
  23.  UNIT ConnectionTools;
  24.  INTERFACE
  25. {$ENDC}
  26.  
  27. {$IFC UNDEFINED __CONNECTIONTOOLS__}
  28. {$SETC __CONNECTIONTOOLS__ := 1}
  29.  
  30. {$I+}
  31. {$SETC ConnectionToolsIncludes := UsingIncludes}
  32. {$SETC UsingIncludes := 1}
  33.  
  34. {$IFC UNDEFINED __WINDOWS__}
  35. {$I Windows.p}
  36. {$ENDC}
  37. {$IFC UNDEFINED __DIALOGS__}
  38. {$I Dialogs.p}
  39. {$ENDC}
  40. {$IFC UNDEFINED __CONNECTIONS__}
  41. {$I Connections.p}
  42. {$ENDC}
  43.  
  44. {$PUSH}
  45. {$ALIGN MAC68K}
  46. {$LibExport+}
  47.  
  48. {$IFC FOR_SYSTEM7_ONLY }
  49.  
  50. CONST
  51.                                                                 {  messages for DefProc  }
  52.     cmInitMsg                    = 0;
  53.     cmDisposeMsg                = 1;
  54.     cmSuspendMsg                = 2;
  55.     cmResumeMsg                    = 3;
  56.     cmMenuMsg                    = 4;
  57.     cmEventMsg                    = 5;
  58.     cmActivateMsg                = 6;
  59.     cmDeactivateMsg                = 7;
  60.     cmIdleMsg                    = 50;
  61.     cmResetMsg                    = 51;
  62.     cmAbortMsg                    = 52;
  63.     cmReadMsg                    = 100;
  64.     cmWriteMsg                    = 101;
  65.     cmStatusMsg                    = 102;
  66.     cmListenMsg                    = 103;
  67.     cmAcceptMsg                    = 104;
  68.     cmCloseMsg                    = 105;
  69.     cmOpenMsg                    = 106;
  70.     cmBreakMsg                    = 107;
  71.     cmIOKillMsg                    = 108;
  72.     cmEnvironsMsg                = 109;                            {  new connection tool messages for ctb 1.1  }
  73.     cmNewIOPBMsg                = 110;
  74.     cmDisposeIOPBMsg            = 111;
  75.     cmGetErrorStringMsg            = 112;
  76.     cmPBReadMsg                    = 113;
  77.     cmPBWriteMsg                = 114;
  78.     cmPBIOKillMsg                = 115;                            {     messages for validate DefProc     }
  79.     cmValidateMsg                = 0;
  80.     cmDefaultMsg                = 1;                            {     messages for Setup DefProc     }
  81.     cmSpreflightMsg                = 0;
  82.     cmSsetupMsg                    = 1;
  83.     cmSitemMsg                    = 2;
  84.     cmSfilterMsg                = 3;
  85.     cmScleanupMsg                = 4;                            {     messages for scripting defProc     }
  86.     cmMgetMsg                    = 0;
  87.     cmMsetMsg                    = 1;                            {     messages for localization defProc     }
  88.     cmL2English                    = 0;
  89.     cmL2Intl                    = 1;
  90.  
  91.                                                                 {  private data constants  }
  92.     cdefType                    = 'cdef';                        {  main connection definition procedure  }
  93.     cvalType                    = 'cval';                        {  validation definition procedure  }
  94.     csetType                    = 'cset';                        {  connection setup definition procedure  }
  95.     clocType                    = 'cloc';                        {  connection configuration localization defProc  }
  96.     cscrType                    = 'cscr';                        {  connection scripting defProc interfaces  }
  97.     cbndType                    = 'cbnd';                        {  bundle type for connection  }
  98.     cverType                    = 'vers';
  99.  
  100.  
  101. TYPE
  102.     CMDataBufferPtr = ^CMDataBuffer;
  103.     CMDataBuffer = RECORD
  104.         thePtr:                    Ptr;
  105.         count:                    LONGINT;
  106.         channel:                CMChannel;
  107.         flags:                    CMFlags;
  108.     END;
  109.  
  110.     CMCompletorRecordPtr = ^CMCompletorRecord;
  111.     CMCompletorRecord = RECORD
  112.         async:                    BOOLEAN;
  113.         filler:                    SInt8;
  114.         completionRoutine:        ConnectionCompletionUPP;
  115.     END;
  116.  
  117.     CMCompletorPtr                        = ^CMCompletorRecord;
  118. {     Private Data Structure     }
  119.     CMSetupStructPtr = ^CMSetupStruct;
  120.     CMSetupStruct = RECORD
  121.         theDialog:                DialogPtr;
  122.         count:                    INTEGER;
  123.         theConfig:                Ptr;
  124.         procID:                    INTEGER;                                {  procID of the tool     }
  125.     END;
  126.  
  127.     CMSetupPtr                            = ^CMSetupStruct;
  128. {$ENDC}
  129. {$ALIGN RESET}
  130. {$POP}
  131.  
  132. {$SETC UsingIncludes := ConnectionToolsIncludes}
  133.  
  134. {$ENDC} {__CONNECTIONTOOLS__}
  135.  
  136. {$IFC NOT UsingIncludes}
  137.  END.
  138. {$ENDC}
  139.